package cz.semjob.learning.data.attribute;

import cz.semjob.common.attribute.IAttribute;

public abstract class AInstanceAttribute implements IAttribute, Cloneable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2686540494724818436L;

	public AInstanceAttribute() {
		super();
	}

	protected String name;

	public AInstanceAttribute(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public AInstanceAttribute copyWithName(String name) {
		try {
			AInstanceAttribute newAttribute = (AInstanceAttribute) super
					.clone();
			newAttribute.setName(name);
			return newAttribute;
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			return null;
		}
	}

}
